from QueryProcessor import QueryProcessor  

#==============MAIN==========================
if __name__ == '__main__':
	queryProcessor = QueryProcessor()
	
	while True:
		try:
			query = raw_input('Qdb > ')
		except EOFError:
			break
		if not query: 
			continue
		while query[-1] == '\n' or query[-1] == '\r':
			query = query[:-1]
		if query == "exit" or query == "quit":
			break
		else:
			queryProcessor.process(query)